import type{IResponse} from '@/types/types'
import axiosInstance from '@/utils/request'

export const RequestGoodsList = (pageNo:number,pageSize:number):Promise<IResponse>=>{
    return axiosInstance({
        url:'/api/shop',
        method:'get',
        params:{
            pageSize,
            pageNo,
        }
    })
}

export const RequestBannerList = ():Promise<IResponse>=>{
    return axiosInstance({
        url:'/api/banner',
        method:'get',
    })
}